﻿using BCEntity.Common.IP;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCData.Common.IP
{
    /// <summary>
    /// IP地址记录数据处理
    /// </summary>
    public interface IIPAddressRecordData
    {
        /// <summary>
        /// 添加IP地址记录
        /// </summary>
        /// <param name="ipAddressRecordEntity">IP地址记录</param>
        /// <returns></returns>
        long Add(IPAddressRecordEntity ipAddressRecordEntity);
        /// <summary>
        /// 更新IP地址记录
        /// </summary>
        /// <param name="ipAddressRecordEntity">IP地址记录</param>
        /// <returns></returns>
        bool Update(IPAddressRecordEntity ipAddressRecordEntity);
        /// <summary>
        /// 检查IP地址记录是否存在
        /// </summary>
        /// <param name="ipAddressRecordEntity">IP地址记录</param>
        /// <returns></returns>
        bool CheckIPAddressRecordExists(IPAddressRecordEntity ipAddressRecordEntity);
        /// <summary>
        /// 查询IP地址记录信息
        /// </summary>
        /// <param name="ipAddressRecordEntity">ip地址</param>
        /// <returns></returns>
        IPAddressRecordEntity Get(IPAddressRecordEntity ipAddressRecordEntity);
    }
}
